﻿package com.prasanna.practice.utils
{
	import flash.display.MovieClip;
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Prasanna Patra
	 * com.prasanna.practice.utils.SwfLoaderEvent
	 */
	
	public class SwfLoaderEvent extends Event
	{
		public static const SWF_LOADED:String = "swfLoaded";
		public static const SWF_PROGRESS:String = "swfProgress";
		
		public var loadedSwf:MovieClip;
		public var progress:Number;
		
		public function SwfLoaderEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
		{
			super(type, bubbles, cancelable);
		}
		
		public override function clone():Event
		{
			return new SwfLoaderEvent(type, bubbles, cancelable);
		}
		
		public override function toString():String
		{
			return formatToString("SwfLoaderEvent", "type", "bubbles", "cancelable", "eventPhase");
		}
	}
}